home *** CD-ROM | disk | FTP | other *** search
/ Java 1996 August / Java - Summer 1996.iso / kaffe-0.2 / kaffe / lookup.h < prev    next >
C/C++ Source or Header  |  1996-02-11  |  1KB  |  49 lines

  1. /*
  2.  * lookup.h
  3.  * Various lookup calls for resolving objects, methods, exceptions, etc.
  4.  *
  5.  * Copyright (c) 1996 Systems Architecture Research Centre,
  6.  *           City University, London, UK.
  7.  *
  8.  * See the file "license.terms" for information on usage and redistribution
  9.  * of this file, and for a DISCLAIMER OF ALL WARRANTIES.
  10.  *
  11.  * Written by Tim Wilkinson <tim@sarc.city.ac.uk>, February 1996.
  12.  */
  13.  
  14. #ifndef __lookup_h
  15. #define __lookup_h
  16.  
  17. struct _methodTable;
  18.  
  19. typedef struct _callInfo {
  20.     int            in;
  21.     int            out;
  22.     struct _methodTable*    mtable;
  23.     int            offset;
  24.     int            mtag;
  25. } callInfo;
  26.  
  27. typedef struct _createInfo {
  28.     struct _classes*    class;
  29. } createInfo;
  30.  
  31. typedef struct _fieldInfo {
  32.     struct _classes*    class;
  33.     int            size;
  34.     int            offset;
  35. } fieldInfo;
  36.  
  37. typedef struct _exceptionInfo {
  38.     int            handler;
  39.     struct _classes*    class;
  40. } exceptionInfo;
  41.  
  42. void    getMethodSignatureClass(constIndex, constants*, callInfo*);
  43. void    getClass(constIndex, constants*, createInfo*);
  44. void    getField(constIndex, bool, constants*, fieldInfo*);
  45. void*    findMethod(classes*, strpair*);
  46. void    findExceptionInMethod(nativecode*, classes*, exceptionInfo*);
  47.  
  48. #endif
  49.